#include <iostream>
#include <boost/date_time/posix_time/posix_time.hpp>

using namespace boost::posix_time;
using namespace std;

int main()
{
   time_duration td1(1,2,3,456789);
   cout<<td1<<endl;
   time_duration td2 = hours(1000);
   time_duration td3 = minutes(1000);
   time_duration td4 = seconds(1000);
   time_duration td5 = milliseconds(1000);
   time_duration td6 = microseconds(1000);

   cout<<td2<<endl;
   cout<<td3<<endl;
   cout<<td4<<endl;
   cout<<td5<<endl;
   cout<<td6<<endl;

   ptime t1(microsec_clock::local_time());
   cout << t1 << endl;
   ptime t2(microsec_clock::universal_time());
   cout << t2 << endl;

   cout << t2-t1 << endl;
}
